const ktlcache = {
  requestQueue: { // 请求队列
    has(item){
      return getApp().globalData.requestQueue.includes(item)
    },
    add(item) {
      const app = getApp();
      const list = app.globalData.requestQueue;
      list.push(item)
      app.globalData.requestQueue = list;
    },
    remove(item) {
      const app = getApp();
      const list = app.globalData?.requestQueue;
	  
      list.splice(list.indexOf(item), 1);
      app.globalData.requestQueue = list;
    },
  },
  
}

export default ktlcache